<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\models\Article;

class ArticleController extends Controller{

    public function index()
    {
        return Article::all();
    }
    public function show($id)
    {
        return Article::where('id',$id)->first();
    }
}